import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'controls/profile_controller.dart';
import 'widgets/profile_header_widget.dart';
import 'widgets/profile_info_widget.dart';
import 'widgets/profile_actions_widget.dart';

class ProfileScreen extends StatelessWidget {
  const ProfileScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (_) => ProfileController(),
      child: Scaffold(
        body: SafeArea(
          child: SingleChildScrollView(
            child: Column(
              children: const [
                ProfileHeaderWidget(),
                SizedBox(height: 24),
                ProfileInfoWidget(),
                SizedBox(height: 24),
                ProfileActionsWidget(),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
